10,401 questions with C#-related tags

Sort by: Updated
2 answers

REST interface, server for GET,PUT,POST,DELETE

Hello, My goal is to control a Rest Server from a WPF C# desktop app. Get, Push, Pop, Delete should be tested. The server does not require extensive logic, only test data. Later, the customer REST server is connected. How can I achieve this? How should I…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,246 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,319 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,401 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
306 questions
asked 2024-05-23T17:15:44.0466667+00:00
Noah Aas 260 Reputation points
commented 2024-05-28T19:31:03.0833333+00:00
Noah Aas 260 Reputation points
0 answers

How to insert new,update, delete existing record in single row of gridview

I am developing ASP.NET application and i am using gridview in that. Here, i am not using any textbox controls outside of the gridview to save the record. everything i want to maintain in same row of the records. for example, when page load, if any…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,319 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,401 questions
asked 2024-05-28T14:36:20.12+00:00
Gani_tpt 1,786 Reputation points
edited a comment 2024-05-28T18:51:47.17+00:00
AgaveJoe 26,246 Reputation points
0 answers

How to create event for subclassed control

I use GestureRecognizers with Label in lots of places in an app and would like to create a new Label control that basically uses Label as the base and adds a TapGestureRecognizer that invokes an event that can be defined in XAML. I know how to subclass…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,989 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,401 questions
asked 2024-05-28T15:05:06.46+00:00
Lloyd Sheen 1,391 Reputation points
commented 2024-05-28T18:43:16.5233333+00:00
Lloyd Sheen 1,391 Reputation points
1 answer

How to make fit ASP.NET page in horizontal bar when resizing the width of the page manually

I am developing ASP.NET application. sometimes user, resizing the width of the page. most of the global page (like microsoft all the pages), the page automatically fit the width based on the size of the horizontal width. How to make this. by default, the…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,319 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,401 questions
asked 2024-05-25T07:53:00.6633333+00:00
Gani_tpt 1,786 Reputation points
commented 2024-05-28T17:51:11.3833333+00:00
Gani_tpt 1,786 Reputation points
0 answers

My listview is listing only the id instead of 3 items on the table

PLEASE HELP ME I am working on sqlite database , i have the following code in c# maui return (await conn.Table<ServiceData>().ToListAsync()) ```.Where(s…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
704 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,989 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,401 questions
SQL Server Training
SQL Server Training
SQL Server: A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.Training: Instruction to develop new skills.
4 questions
asked 2024-05-28T15:40:05.35+00:00
Gbenga Banuso Odumosu 40 Reputation points
edited the question 2024-05-28T17:36:38.2033333+00:00
Richard Hay 1,246 Reputation points Microsoft Employee
0 answers

Using User Control in WPF, How to create good UI grid?

Hi Team I have a mock-up and want to reproduce it exactly the same way using User controls offered by Microsoft forms in WPF. <UserControl x:Class="Feedmill_Weighbridge.Presentation.UCPremixPacks" …

Universal Windows Platform (UWP)
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,401 questions
asked 2024-05-28T17:20:47.55+00:00
Gcobani Mkontwana 40 Reputation points
0 answers

How to reproduce the UI control from mock-up using wpf?

Hi Team I have a mock-up and want to reproduce it using wpf controls given by Microsoft forms in windows. Below is my current code and need some adjustment, as well screen shot of the mock-up want to produce using wpf ui controls. <UserControl…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,858 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,401 questions
asked 2024-05-28T16:45:17.65+00:00
Gcobani Mkontwana 40 Reputation points
0 answers

How to pars the text and extract some parts and assigning them to variables in visual studio .Net without interfering with the received data from serial port?

I have a received data from com port in this format: ************************* General Device Configuration ************************* Flash address...............0x40100180 Memory allocated............256 Size on…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,710 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,401 questions
asked 2024-05-28T15:45:37.88+00:00
Goharshenasanesfahani, Sahar 0 Reputation points
5 answers

Why are Backspace, Enter, Navigation keys not working while editing any file in Visual Studio?

I am using Visual Studio Extensions, while creating a new solution through extension for the first time, we are only able to type alphabets. Backspace, Enter, Navigation keys are not working while editing any file. But when we force close the solution,…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,710 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,401 questions
Visual Studio Extensions
Visual Studio Extensions
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Extensions: A program or program module that adds functionality to or extends the effectiveness of a program.
179 questions
asked 2023-02-23T04:57:49.38+00:00
Apurva Kamshetty 25 Reputation points
answered 2024-05-28T15:13:11.97+00:00
Sean Houghton 0 Reputation points
2 answers

How to build screen recorder Winform GUI app which also records the sound of system at the same time

using System; using System.Diagnostics; using System.Drawing; using System.Windows.Forms; using NAudio.Wave; using SharpAvi; using SharpAvi.Codecs; using SharpAvi.Output; namespace ScreenAudioRecorder { public partial class Form1 : Form { …

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,401 questions
asked 2024-05-27T15:21:50.9433333+00:00
Rahmatulloh 0 Reputation points
commented 2024-05-28T14:03:52.3533333+00:00
Rahmatulloh 0 Reputation points
2 answers One of the answers was accepted by the question author.

How to make search text in ASP.NET dropdown controls

I have been developing ASP.NET application. some of the place i want searchable dropdown controls. the dropdown should search both numbers and name. How to do this...? example data as below. Cust.Name | Cust.Number Alfred K AXN29109 …

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,319 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,401 questions
asked 2024-05-25T08:11:36.1666667+00:00
Gani_tpt 1,786 Reputation points
commented 2024-05-28T12:59:40.43+00:00
Gani_tpt 1,786 Reputation points
2 answers One of the answers was accepted by the question author.

Help with setting the background color when the MenuStrip dropdown menu is opened.

hello. I have organized my menu using MenuStrip. I have overridden the MenuStrip background and color with ToolStripProfessionalRenderer. I am using the MenuStrip with white text on a transparent background. When the dropdown menu is opened, the text of…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,401 questions
asked 2024-05-22T09:00:16.8533333+00:00
Youngs 40 Reputation points
edited a comment 2024-05-28T12:42:34.3666667+00:00
KOZ6.0 5,295 Reputation points
0 answers

Object cannot be cast from DBNull to other types.

Good day, I want to check my DB connection and here's my code. private void Button2_Click(object sender, EventArgs e) { string mysqlcon =…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,710 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,401 questions
asked 2024-05-28T11:44:27.7833333+00:00
BgnerNprg207 226 Reputation points
edited a comment 2024-05-28T12:06:36.4366667+00:00
Viorel 113.2K Reputation points
0 answers

How to obtain an access token for On-premises SharePoint

I have a SharePoint clientId and clientSecret. Is it possible to obtain an access token for On-premises SharePoint through a Windows service? what should be the API end point to get the access token?

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,401 questions
asked 2024-05-28T12:03:30.0066667+00:00
Shankar, Bhukya 0 Reputation points
4 answers

How to connect my c# application to my phpmyadmin database from my NAS?

Good day, I want to try to connect to my database in my NAS. Please take a look the image below. As you can see at the image, I want to access my database outside in my home network. I already installed phpmyadmin in my NAS, but the problem is I don't…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,914 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,401 questions
asked 2024-05-26T11:07:34.2566667+00:00
BgnerNprg207 226 Reputation points
answered 2024-05-28T11:24:12.5333333+00:00
BgnerNprg207 226 Reputation points
2 answers

How to get/read specific word from pdf or image document in ASP.NET Application

I have millions of image or pdf document...I want get some specific word from the uploaded image or pdf document...after getting this, I am going to use these in my project...All this I want in asp.net application and if any third-party tools are using,…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,319 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,401 questions
asked 2024-05-26T03:09:00.3533333+00:00
Gani_tpt 1,786 Reputation points
commented 2024-05-28T09:26:25.2433333+00:00
Lan Huang-MSFT 26,606 Reputation points Microsoft Vendor
0 answers

How to customise global window closing prompt in a .NET MAUI application

I am working on a .NET MAUI project for desktop, I found a global solution for prompting a user before closing the application here. I would like to know if this can be customised and triggered conditionally when closing. For example: I have an…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,825 questions
Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,863 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,989 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,401 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,455 questions
asked 2024-05-28T08:55:28.29+00:00
Arturs Pramalts 0 Reputation points
2 answers

How to Detect Initial DPI changes in a WPF Application while Scaling according to Per Monitor Aware in Variable Dynamic Screen Resolution?

In daily life we have to deal with a lot of different types of display size it may be mobile or may be a 4k monitor. The screen resolution vary from display to display. Here another important factor is DPI (Display per inch) which is mainly a scaling…

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,863 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,687 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,401 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,568 questions
asked 2024-05-27T23:46:16.7233333+00:00
MERUN KUMAR MAITY 531 Reputation points
answered 2024-05-28T07:55:11.2166667+00:00
Hongrui Yu-MSFT 415 Reputation points Microsoft Vendor
0 answers

Azure B2C, Sign in using multiple policies

I'm currently using Azure B2C to sign in users using the Microsoft.Identity.Web framework. My configuration looks something like this services.AddAuthentication(OpenIdConnectDefaults.AuthenticationScheme) .AddMicrosoftIdentityWebApp(options => …

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,400 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,401 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,889 questions
asked 2024-05-28T07:28:21.34+00:00
Jonas Nordtorp Olesen - Dronevolt 5 Reputation points
edited the question 2024-05-28T07:51:12.7133333+00:00
Jiale Xue - MSFT 37,131 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Need help with DataGridViewComboBox and selecting the next control

I need some help to achieve some functionality in a DataGridView. This Windows app is written in C# using the Windows Form App (.NET Framework). The DataGridView uses a mix of DataGridViewTextBoxColumn & DataGridViewComboBoxColumn. The need is to…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,858 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,401 questions
asked 2024-05-24T17:30:04.13+00:00
Pat Hanks 60 Reputation points
commented 2024-05-27T17:43:07.8366667+00:00
Pat Hanks 60 Reputation points